#include "tree_node.h"

TreeNode* create_tn(void* data,int weight)
{
    TreeNode *node = malloc(sizeof(TreeNode));
    node->data = data;
    node->left = NULL;
    node->right = NULL;
    node->hasLeftClue = false;
    node->hasRightClue = false;
    node->weight = weight;
    node->height = 0;
    return node;
}
